<template>
  <div v-if="allAwards.length > 0">
    <award-template
        :award="item"
        v-for="item in allAwards"/>
  </div>
</template>

<script>
import AwardTemplate from "@/views/movie/movie_detail/down_info/awards/template/AwardTemplate";

export default {
  name: "Awards",
  components: {
    AwardTemplate
  },
  data() {
    return {
      allAwards: []
    }
  },
  methods: {
    getAllAwards() {
      let info = this.$store.getters.getMovieInfoDetail
      let awards = info.awards
      for (let i = 0; i < awards.length; i++) {
        this.allAwards.push(awards[i])
      }
    }
  },
  created() {
    this.getAllAwards()
  }
}
</script>

<style scoped>

</style>